package cn.kgc.crowdfundingadmin.service;

import cn.kgc.crowdfundingadmin.pojo.Cert;
import cn.kgc.crowdfundingadmin.pojo.CertExample;
import cn.kgc.crowdfundingadmin.pojo.Role;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CertService {
    public void updateCert(Cert cert);

    public void saveCert(String certName);

    public void batchRemove(List<Integer> certIdList);

    public List<Cert> getCertListByIdList(List<Integer> certIdList);

    public PageInfo<Cert> queryForKeywordWithPage(
            Integer pageNum,
            Integer pageSize,
            String keyword);

    int countByExample(CertExample example);

    int deleteByExample(CertExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Cert record);

    int insertSelective(Cert record);

    List<Cert> selectByExample(CertExample example);

    Cert selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Cert record, @Param("example") CertExample example);

    int updateByExample(@Param("record") Cert record, @Param("example") CertExample example);

    int updateByPrimaryKeySelective(Cert record);

    int updateByPrimaryKey(Cert record);
}